<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IUser>" %>
<%@ Import Namespace="YoProgramo.Domain.Core.Interfaces"%>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">

    <% using (Html.BeginForm())
     {%>
        <h2>Edit User Profile</h2>
        <% = Html.AntiForgeryToken() %>
        <%= Html.ValidationSummary("Un error ha ocurrido y no fue posible actualizar tu perfil. Chequea los campos.")%>
        <p><label>User:</label> <%=Server.HtmlEncode(Model.UserName)%></p>            
         <%=Html.Hidden("user.Id", Model.Id)%>
        <p><label>Edad:</label> <%=Html.TextBox("user.Age", Model.Age)%></p>     
        <p><label>Pais:</label> <%= Html.TextBox("user.Pais", Model.Pais) %></p>
        <p><label>Sitio:</label> <%= Html.TextBox("user.Site", Model.Site) %></p> 
        <p><label>Bio:</label> <%=Html.TextArea("user.Bio", Model.Bio, new { style = "width:100%; height:330px;" }) %></p>
        <script type="text/javascript">
          // to set WMD's options programatically, define a "wmd_options" object with whatever settings
          // you want to override.  Here are the defaults:
          wmd_options = {
            // format sent to the server.  Use "Markdown" to return the markdown source.
            output: "Markdown",

            // line wrapping length for lists, blockquotes, etc.
            //lineLength: 40,

            // toolbar buttons.  Undo and redo get appended automatically.
            buttons: "bold italic | link blockquote code image | ol ul heading hr",

            // option to automatically add WMD to the first textarea found.  See apiExample.html for usage.
            autostart: true
          };
      </script>                    
      <script src="../../Scripts/wmd/wmd.js" type="text/javascript"></script>
        <p>
            <input type="submit" value="Enviar" />
        </p>
    <%
     }%>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceBarra" runat="server">
</asp:Content>
